var gulp = require('gulp');

var postcss = require('gulp-postcss');

var pxtorem = require('postcss-pxtransform');

gulp.task('css', function() {
  var processors = [
    pxtorem({
      platform: 'weapp',

      designWidth: 750,
    }),
  ];
  // gulp.src(['miniprogram_npm/@vant/**/*.wxss'])
  return gulp.src('./src/components/vant/**/*.wxss')
  .pipe(postcss(processors))
  .pipe(gulp.dest('./src/components/vant'));
});
